//
//  CZCategoryModel.m
//  QQ空间
//
//  Created by zhangping on 16/2/7.
//  Copyright © 2016年 zhangping. All rights reserved.
//

#import "CZCategoryModel.h"

@implementation CZCategoryModel

- (instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
}

/// 字典中的key在模型中找不到对应的属性
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {}

/// 实现模型的 description 方法
- (NSString *)description {
    return [NSString stringWithFormat:@"\t分类模型: highlighted_icon:%@, icon:%@, name:%@, small_highlighted_icon:%@, small_icon:%@, subcategories:%@", self.highlighted_icon, self.icon, self.name, self.small_highlighted_icon, self.small_icon, self.subcategories];
}

@end
